const DELAYED_MOVE_TIMEOUT = 200;
-const DIALOG_SHADE_NORMAL = Clutter.Color.from_pixel(0x000000cc);
-const DIALOG_SHADE_HIGHLIGHT = Clutter.Color.from_pixel(0x00000055);
+const DIALOG_SHADE_NORMAL = new Clutter.Color({red: 0, green: 0, blue: 0, alpha: 204});
+const DIALOG_SHADE_HIGHLIGHT = new Clutter.Color({red: 0, green: 0, blue: 0, alpha: 85});
const DEFAULT_FOLDERS = {
'Utilities': {
this.child.get_transformed_position();
this.ease({
- background_color: Clutter.Color.from_pixel(0x00000000),
+ background_color: new Clutter.Color({red: 0, green: 0, blue: 0, alpha: 0}),
duration: FOLDER_DIALOG_ANIMATION_TIME,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
});
import * as Main from './main.js';
import * as Params from '../misc/params.js';
-const DEFAULT_BACKGROUND_COLOR = Clutter.Color.from_pixel(0x2e3436ff);
+const DEFAULT_BACKGROUND_COLOR = new Clutter.Color({red: 46, green: 52, blue: 54, alpha: 255});
const BACKGROUND_SCHEMA = 'org.gnome.desktop.background';
const PRIMARY_COLOR_KEY = 'primary-color';
_setDimmed(dim) {
const val = 127 * (1 + (dim ? 1 : 0) * DIM_BRIGHTNESS);
- const color = Clutter.Color.new(val, val, val, 255);
+ const color = new Clutter.Color({
+ red: val,
+ green: val,
+ blue: val,
+ alpha: 255,
+ });
this._boxPointer.ease_property('@effects.dim.brightness', color, {
mode: Clutter.AnimationMode.LINEAR,
setDimmed(dimmed, animate) {
let val = 127 * (1 + (dimmed ? 1 : 0) * DIM_BRIGHTNESS);
- let color = Clutter.Color.new(val, val, val, 255);
+ const color = new Clutter.Color({
+ red: val,
+ green: val,
+ blue: val,
+ alpha: 255,
+ });
this.actor.ease_property(`@effects.${this.name}.brightness`, color, {
mode: Clutter.AnimationMode.LINEAR,